package com.industrial.premu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.premu.mapper.PreMuMessageMapper;
import com.industrial.premu.domain.PreMuMessage;
import com.industrial.premu.service.IPreMuMessageService;

/**
 * 诉求反馈Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-02-04
 */
@Service
public class PreMuMessageServiceImpl implements IPreMuMessageService 
{
    @Autowired
    private PreMuMessageMapper preMuMessageMapper;

    /**
     * 查询诉求反馈
     * 
     * @param baseId 诉求反馈主键
     * @return 诉求反馈
     */
    @Override
    public PreMuMessage selectPreMuMessageByBaseId(String baseId)
    {
        return preMuMessageMapper.selectPreMuMessageByBaseId(baseId);
    }

    /**
     * 查询诉求反馈列表
     * 
     * @param preMuMessage 诉求反馈
     * @return 诉求反馈
     */
    @Override
    public List<PreMuMessage> selectPreMuMessageList(PreMuMessage preMuMessage)
    {
        return preMuMessageMapper.selectPreMuMessageList(preMuMessage);
    }

    /**
     * 新增诉求反馈
     * 
     * @param preMuMessage 诉求反馈
     * @return 结果
     */
    @Override
    public int insertPreMuMessage(PreMuMessage preMuMessage)
    {
        return preMuMessageMapper.insertPreMuMessage(preMuMessage);
    }

    /**
     * 修改诉求反馈
     * 
     * @param preMuMessage 诉求反馈
     * @return 结果
     */
    @Override
    public int updatePreMuMessage(PreMuMessage preMuMessage)
    {
        return preMuMessageMapper.updatePreMuMessage(preMuMessage);
    }

    /**
     * 批量删除诉求反馈
     * 
     * @param baseIds 需要删除的诉求反馈主键
     * @return 结果
     */
    @Override
    public int deletePreMuMessageByBaseIds(String[] baseIds)
    {
        return preMuMessageMapper.deletePreMuMessageByBaseIds(baseIds);
    }

    /**
     * 删除诉求反馈信息
     * 
     * @param baseId 诉求反馈主键
     * @return 结果
     */
    @Override
    public int deletePreMuMessageByBaseId(String baseId)
    {
        return preMuMessageMapper.deletePreMuMessageByBaseId(baseId);
    }

    @Override
    public int updateByBaseId(String baseId) {
        return preMuMessageMapper.updateByBaseId(baseId);
    }
}
